package com.servlet;

import com.dao.bigClassDao;
import com.dao.smallClassDao;
import com.dao.userDao;
import com.entity.bigClass;
import com.entity.smallClass;
import com.entity.user;
import com.sun.org.apache.bcel.internal.util.BCELifier;

public class addDemo {
	public static void main(String[] args) {
		for (int i = 0; i < 5; i++) {
			//添加用户
			/*user user=new user("张三"+i, "yrel"+i, "yrel"+i, "1232143@qq.com"+i, "男", "123.jpg"+i, "足球"+i, "1"+i+"-5-3","123214"+i,"湖北省"+i,"41234241243243"+i);
			userDao usd=new userDao();
			usd.add(user);*/
			
			//添加大分类
			bigClass bc=new bigClass("食物"+i);
			bigClassDao bcd=new bigClassDao();
			bcd.add(bc);
			
			//添加小分类
			for (int j = 0; j < 5; j++) {
				smallClass sc=new smallClass("面包"+i, Integer.toString(i+6));
				smallClassDao scd=new smallClassDao();
				scd.add(sc);
			}
		}
	}
}
